
include("../common/app_utils.cmake")

set(app_name t002-lvgl-demo)

def_application(${app_name} app.ld)

target_sources(${app_name} PRIVATE 
    main.c
    lcd.c
    touch.c
    timer.c
)

file(GLOB_RECURSE lvgl_srcs lvgl/*.c)
target_sources(${app_name} PRIVATE ${lvgl_srcs})
target_compile_definitions(${app_name} PRIVATE
    LV_LVGL_H_INCLUDE_SIMPLE=1
)
target_include_directories(${app_name} PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}/lvgl
    ${CMAKE_CURRENT_SOURCE_DIR}/lvgl/src
    ${CMAKE_CURRENT_SOURCE_DIR}/lvgl/porting
    ${CMAKE_CURRENT_SOURCE_DIR}/lvgl/demos/widgets
)
